<%@page import="java.util.Map"%>
<%@page import="java.util.List"%>
<%@page import="service.ArticleService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include  file="../common/taglib.jsp"%>

<%
	ArticleService articleService = new ArticleService();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台管理</title>
<link rel="stylesheet" type="text/css" href="${basePath}/static/css/public.css"/>
<link rel="stylesheet" type="text/css" href="${basePath}/static/css/index.css"/>
<style type="text/css">
	#app{position:relative;}
	.menu{}
	.menu .menu-item{padding: 7px;
    border: 1px solid #ccc;
    border-top:none;
    text-align: center;
    font-size: 16px;}
    .menu .menu-item:hover{background:#eaeaea;cursor:pointer;}
    .menu .menu-item-first{border-top:1px solid #ccc;background: #eaeaea;}
    
</style>
<script src="${basePath}/static/js/jQuery.js"></script>
<script src="${basePath}/static/layui/layui.all.js" charset="utf-8"></script>
<link rel="stylesheet" href="${basePath}/static/layui/css/layui.css" media="all">
</head>
<body>

	<div id="app" class="layui-container">
		<div class='layui-row'>
			<div class='layui-col-xs8'>
				<h1>后台管理</h1>
			</div>
			<div class='layui-col-xs4'>
				<jsp:include page="header.jsp"></jsp:include> 
			</div>
		</div>
		<div class='layui-row' style="margin-top:50px;">
			<div class='layui-col-xs2'>
				<ul class='menu'>
					<li>
						<div class='menu-item menu-item-first'>全部菜单</div>
					</li>
					<li>
						<div class='menu-item' onclick="openJsp('type.jsp')">专题管理</div>
					</li>
					<li>
						<div class='menu-item' onclick="openJsp('article.jsp')">文章管理</div>
					</li>
					<li>
						<div class='menu-item' onclick="location.href='${basePath}/controller/logoutController.jsp'">退出</div>
					</li>
				</ul>
			</div>
			<div class='layui-col-xs1'>&nbsp;</div>
			<div class='layui-col-xs9'>
				<iframe src="type.jsp" id='main' style="width:100%;min-height:500px;border:medium none;"></iframe>
			</div>
		</div>
		
	</div>

		
	
	
	<script>
		function openJsp(jsp){
			$('#main').attr('src',jsp)
		}
		
	</script>
</body>
</html>
